﻿@{
    ViewData["Title"] = "Login";
}
@model User

<div class="container mt-5 " style="flex-grow: 1; align-items: center;">
    <div class="row justify-content-center">
        <div class="col-md-4">
            <h2 class="text-center mb-4">用户注册</h2>
            <form method="post" href="">
                <div class="form-group">
                    <label for="username">手机号</label>
                    <input type="tel" name="username" class="form-control" id="username" placeholder="请输入手机号" required>
                    @Html.ValidationMessageFor(model => model.Username)
                </div>
                <div class="form-group">
                    <label for="password">密码</label>
                    <input type="password" name="password" class="form-control" id="password" placeholder="请输入密码" required>
                    @Html.ValidationMessageFor(model => model.Password)
                </div>
                <div class="form-group">
                    <label for="confirmPassword" class="form-label">确认密码</label>
                    <input type="password" class="form-control" id="confirmPassword" placeholder="请确认密码" required>
                </div>
                <div class="form-group">
                    <label for="confirmPassword" class="form-label">昵称</label>
                    <input type="text" name="nickname" class="form-control" id="nickname" placeholder="请输入昵称" required>
                    @Html.ValidationMessageFor(model => model.Nickname)
                </div>
                <button type="submit" class="btn btn-primary btn-block">注册</button>
            </form>
            <p class="text-center mt-3">已经有账号? <a asp-controller="User" asp-action="Login">登录</a></p>
        </div>
    </div>
</div>